package com.sharekitchen.service;

import com.sharekitchen.entity.Admin;

import java.util.List;

public interface AdminService {
//    检验该用户是否存在
    public boolean existAdminName(String adminName);

//    添加用户
    public boolean addAdmin(Admin admin);

//    获取用户信息
    public Admin findAdminByName(String adminName);

//获取全部用户信息
    public List<Admin> findAllAdmin();

    public Admin findAdminById(int adminId);


    public boolean deleteAdminByName(String adminName);

//    修改管理员
    public boolean updateAdmin(Admin admin);

}
